package com.ecommerce.model;
import java.io.Serializable;
public class CategoryData implements Serializable {
    private String category;
    private Double transactionAmount;
    private Integer transactionCount;
    private Double supplyDemandRatio;
    private Double growthRate;
    private Double marketShare;
    private Long timestamp;
    private String analysisType;
    private String opportunityType;

    // Constructors, Getters and Setters
    public CategoryData() {}

    public CategoryData(String category, Double transactionAmount, Integer transactionCount, 
                       Double supplyDemandRatio, Double growthRate, Double marketShare, 
                       Long timestamp, String analysisType, String opportunityType) {
        this.category = category;
        this.transactionAmount = transactionAmount;
        this.transactionCount = transactionCount;
        this.supplyDemandRatio = supplyDemandRatio;
        this.growthRate = growthRate;
        this.marketShare = marketShare;
        this.timestamp = timestamp;
        this.analysisType = analysisType;
        this.opportunityType = opportunityType;
    }

    // Getters and Setters...
    public String getCategory() { return category; }
    public void setCategory(String category) { this.category = category; }

    public Double getTransactionAmount() { return transactionAmount; }
    public void setTransactionAmount(Double transactionAmount) { this.transactionAmount = transactionAmount; }

    public Integer getTransactionCount() { return transactionCount; }
    public void setTransactionCount(Integer transactionCount) { this.transactionCount = transactionCount; }

    public Double getSupplyDemandRatio() { return supplyDemandRatio; }
    public void setSupplyDemandRatio(Double supplyDemandRatio) { this.supplyDemandRatio = supplyDemandRatio; }

    public Double getGrowthRate() { return growthRate; }
    public void setGrowthRate(Double growthRate) { this.growthRate = growthRate; }

    public Double getMarketShare() { return marketShare; }
    public void setMarketShare(Double marketShare) { this.marketShare = marketShare; }

    public Long getTimestamp() { return timestamp; }
    public void setTimestamp(Long timestamp) { this.timestamp = timestamp; }

    public String getAnalysisType() { return analysisType; }
    public void setAnalysisType(String analysisType) { this.analysisType = analysisType; }

    public String getOpportunityType() { return opportunityType; }
    public void setOpportunityType(String opportunityType) { this.opportunityType = opportunityType; }

    @Override
    public String toString() {
        return "CategoryData{" +
                "category='" + category + '\'' +
                ", transactionAmount=" + transactionAmount +
                ", growthRate=" + growthRate +
                ", marketShare=" + marketShare +
                ", analysisType='" + analysisType + '\'' +
                ", opportunityType='" + opportunityType + '\'' +
                '}';
    }}